package com.enqualcomm.kids.view;

import android.content.Context;
import android.view.View;

import com.enqualcomm.kids.network.socket.response.QueryUserTerminalInfoResult;

public abstract class BasePager {
	protected View view;
	protected Context ct;
	public BasePager(Context context){
		this.ct = context;
		view = initView();
	}

	protected QueryUserTerminalInfoResult.Data info;

	public BasePager(Context context,QueryUserTerminalInfoResult.Data info){
		this.ct = context;
		this.info = info;
		view = initView();
	}

	protected String imei;
	public BasePager(Context context,String imei){
		this.ct = context;
		this.imei = imei;
		view = initView();
	}
	
	/**
	 * 在构造的时候调用这个方法,初始化要显示的view
	 * @return
	 */
	public abstract View initView();
	/**
	 * 清除页面数据
	 */
	public void clear(){

	}
	
	/**
	 * 返回要显示的view
	 * @return
	 */
	public View getRootView(){
		return view;
	}
	public String getPageTitle(){
		return "";
	}
}